package edu.xmut.yuepai.common.utils;


import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.lang.id.IdConstants;

public class IDGenerator {
    private static final Snowflake snowflake = IdConstants.DEFAULT_SNOWFLAKE;

    public static long nextId() {
        return snowflake.nextId();
    }

    public static String nextIdStr() {
        return snowflake.nextIdStr();
    }
}
